﻿@{
    Layout = "~/Views/Shared/_AddEdit.cshtml";
}
<div class="poppan">
    <table>
        <tr>
            <td nowrap>宝宝姓名*</td>
            <td><input type="text" name="_custName"  autocomplete="off" class="layui-input"></td>
            <td nowrap>联系电话*</td>
            <td><input type="text" name="_custTel"  autocomplete="off" class="layui-input"></td>
        </tr>
        <tr>
            <td>出生日期</td>
            <td><input type="text" name="_birdDate" id="_birdDate"  autocomplete="off" class="layui-input date"></td>
            <td>出生日期已确认</td>
            <td><input type="checkbox" name="_birDateState" lay-skin="switch"></td>
        </tr>
        
        <tr>
            <td>宝宝小名</td>
            <td><input type="text" name="_childName"  autocomplete="off" class="layui-input"></td>
            <td>性别</td>
            <td>
                <input type="radio" name="_sex" value="男" title="男" checked>
                <input type="radio" name="_sex" value="女" title="女">
            </td>
        </tr>
        <tr>
            <td>家长姓名</td>
            <td><input type="text" name="_linkName" autocomplete="off" class="layui-input"></td>
            <td>关系</td>
            <td>
                <select name="_linkRelation">
                @foreach (var dr in ViewBag.dict["linkRelation"])
                {
                    <option value="@dr.Key" @(dr.Key == ViewBag.data["linkRelation"].ToString() ? "selected" : "")>@dr.Value</option>
                }
                </select>
            </td>
        </tr>
        <tr>
            <td>渠道来源</td>
            <td>
                <select name="_custFromId">                                               
                @foreach (var dr in ViewBag.dict["custFromId"])
                {
                    <option value="@dr.Key" @(dr.Key == ViewBag.data["custFromId"].ToString() ? "selected" : "")>@dr.Value</option>                  
                }
                </select>
            </td>
            <td>来源备注</td>
            <td>
                <input type="text" name="_custFromRemark"  autocomplete="off" class="layui-input">
            </td>
        </tr>
        <tr>
            <td>备注</td>
            <td colspan="3">
                <textarea name="_custRemark"  class="layui-textarea"></textarea>
            </td>
        </tr>
   </table> 
</div>
